package net.oschina.app.protocol;

import net.oschina.app.base.BaseProtocol;
import net.oschina.app.bean.ExploreEventBean;

import retrofit2.Call;

/**
 * Created by wei03 on 2017/1/14.
 */

public class ExplorerRecentProtocol extends BaseProtocol<ExploreEventBean> {
    private String mUid = "-1";
    private String mPageIndex = "0";
    private String pageSize = "20";

    public ExplorerRecentProtocol(String uid) {
        mUid = uid;
    }

    @Override
    protected Call getCall(String pageIndex) {
        return mApiService.getExploreEventBean(mUid,mPageIndex,pageSize);
    }

    @Override
    protected String getIndex() {
        return mPageIndex;
    }

    @Override
    protected String getType() {
        return "event_list";
    }
}
